/*
 * File:   Obstacle.cpp
 * Author: Elevator
 *
 * Created on August 2, 2013, 11:44 PM
 */

#include "Obstacle.h"

Obstacle::Obstacle( std::string id ) :
	_id( id )
{
}

Obstacle::Obstacle( std::string id, ICollection<physics::IBody*>* bodies ) :
	_id( id )
{
	for( IteratorPtr<physics::IBody*> obstacles( bodies->GetIterator( ) );
			!obstacles->IsEnd( );
			obstacles->Next( ) )
	{
		_bodies.Add( obstacles->Current( ) );
	}
}

Obstacle::~Obstacle( )
{
}

void Obstacle::AddBody( physics::IBody* body )
{
	_bodies.Add( body );
}

void Obstacle::RemoveBody( physics::IBody* body )
{
	_bodies.Remove( body );
}

void Obstacle::Update( float )
{
}

void Obstacle::Draw( ) const
{
}
